package com.btobtob.a.biz.user.entity;

import lombok.*;

import java.util.Calendar;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WeatherForecast {

//    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private Calendar zonedDatetime;

    private Date localDatetime;

    private String localDate;

    private int temperatureC;

    private String summary;

    @Setter(AccessLevel.NONE)
    @Getter(AccessLevel.NONE)
    private int temperatureF;

    public int getTemperatureF() {
        temperatureF = 32 + (int)(temperatureC / 0.5556);
        return temperatureF;
    }

}
